package core;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * example xml <html attribute="foo"> <head> <title>page title</title> <meta
 * name="name"/> </head> <body> <h1>a title</h1> this is some text </body>
 * </html>
 * 
 * @author 810621623
 */

@Retention(RetentionPolicy.RUNTIME)
public @interface HtmlMapper {

    public static int OUTPUT_TEXT_CONTENT = 1;
    public static int OUTPUT_XML = 2;

    /**
     * define the xpath /html/head/title --> returns "page title"
     * 
     * @return
     */
    String xpath() default "";

    int outputType() default OUTPUT_TEXT_CONTENT;

}
